<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	
%>
<title>菜单页</title>
<base href="<%=basePath%>"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){	
	//导航切换
	$(".menuson li").click(function(){
		$(".menuson li.active").removeClass("active")
		$(this).addClass("active");
	});
	
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('ul').slideUp();
		if($ul.is(':visible')){
			$(this).next('ul').slideUp();
		}else{
			$(this).next('ul').slideDown();
		}
	});
})	
</script>
</head>

<body style="background:#f0f9fd;">
	<div class="lefttop"><span></span>所有功能</div>
    
    <dl class="leftmenu">
		<s:if test="#session.usermenu!=null && #session.usermenu.size()>0">
			<s:iterator var="menuItem" value="#session.usermenu" status="menuSt">
			    <s:if test="#menuItem.resourcePid == \"0\"">
			    <dd>					
			    	<div class="title"><span><img src="<%=request.getContextPath()%>/images/leftico01.png"/></span><s:property value="resourceName"/></div>
			    	<ul class="menuson">
			        	<s:iterator var="subMenuItem" value="#session.usermenu" status="subMenuSt">
				        	<s:if test="#subMenuItem.resourcePid == #menuItem.resourceId">
				        		<li><cite></cite><a href="<%=request.getContextPath()%>/<s:property value="resourceContent"/>" target="rightFrame"><s:property value="resourceName"/></a><i></i></li>
				        	</s:if>
			        	</s:iterator>
			        </ul>  			    	
			    </dd>
			    </s:if>
			</s:iterator>
		</s:if>
 
	</dl>
</body>
</html>
